package com.blb.zy_community.mapper;

import com.blb.zy_community.entity.SysUserPost;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 用户与岗位关联表 Mapper 接口
 * </p>
 *
 * @author 二组
 * @since 2023-06-18
 */
public interface SysUserPostMapper extends BaseMapper<SysUserPost> {

    /**
     * 批量新增用户岗位管理表
     * @param sysUserPosts
     */
    void insertAllUserPost(List<SysUserPost> sysUserPosts);

    /**
     * 删除用户和岗位关联表
     *
     */
    void deleteUserPostByUserId(Long userId);
}
